import PyPDF2

filenames=['ThirdPartyLicense.pdf','userguide.pdf']

merger= PyPDF2.PdfFileMerger()
for file_item in filenames:
    merger.append(PyPDF2.PdfFileReader(file_item))
merger.write('newPDF.pdf')

